public class DropBox_Connector {
	
	

	



   public static void access_token(){
   	
   	//This Link must be opened by the user to allow 
   	
   	// https://www.dropbox.com/1/oauth/authorize?oauth_token=cfmbtii8oiu2p8g&oauth_callback=https://www.dropbox.com/
   	Http http = new Http();
   	HttpRequest req = new HttpRequest();
   	String sApp_key = 'r33huo1lbln9f6r';
   	String sApp_secret = '41wzp91k7xda6a2';
   	
     String sAutho = 'OAuth' + ' ';
     sAutho += 'oauth_token' + '=' + 'cfmbtii8oiu2p8g' + ', ';
     sAutho += 'oauth_consumer_key' + '=' + sApp_key + ', ';
     sAutho += 'oauth_signature_method' + '=' + '"PLAINTEXT"' + ', ';
     sAutho += 'oauth_version' + '=' + '"1.0"' + ', ';
     sAutho += 'oauth_signature' + '=' + sApp_secret+'&'+'n4tk82vr6g6wbrm';   	
   	
   	req.setHeader('Authorization',sAutho);
   	req.setEndpoint('https://api.dropbox.com/1/oauth/access_token');
   	req.setMethod('POST');
   	HTTPResponse res = http.send(req);
   	
   	System.debug('****res body******* '+res.getBody());
   }	


}